package com.yunji.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

;

/**
 * @Package com.yunji.user.domain
 * FileName:	Belong.java
 * Copyright:	Copyright © 2024 All Rights Reserved
 * Company:		云集互联
 * @version: 1.0
 * @since: JDK 1.8.0_202
 * Create at:   2024-08-15 18:22:39.241
 * Description:
 * 所属信息
 * Modification History:
 * Author					Date						Version			Description
 * --------------------------------------------------------------------------------
 * HuaAo				2024-08-15 18:22:39			1.0				1.0 Version
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("v3_belong")
public class BelongDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = -4208501798546881886L;

    @ApiModelProperty(value = "所属ID")
    @TableId(type = IdType.AUTO)
    private Long belongId;

    @Excel(name = "账户名称", readConverterExp = "00=平台,11=代理,13=网点", width = 15)
    @ApiModelProperty(value = "所属类型(00:平台;11:代理;13:网点)")
    private String belongType;

    @Excel(name = "账户名称", width = 15)
    @ApiModelProperty(value = "所属名称")
    private String belongName;

    @ApiModelProperty("手机号")
    @Excel(name = "手机号", width = 15)
    @TableField(exist = false)
    private String phoneNumber;

    @ApiModelProperty(value = "父级所属ID")
    private Long parentId;

    @Excel(name = "代理模式", readConverterExp = "0=合作代理,1=自营代理", width = 15)
    @ApiModelProperty(value = "代理模式(0:合作代理;1:自营代理)")
    private Integer agentMode;

    @ApiModelProperty(value = "代理ID")
    private Long agentId;

    @ApiModelProperty(value = "网点ID")
    private Long siteId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "分成比例", width = 15)
    @ApiModelProperty(value = "分成比例/每笔金额")
    private BigDecimal scaleRatio;

    @Excel(name = "账户余额", width = 15)
    @ApiModelProperty(value = "账户余额")
    private BigDecimal remainAmount;

    @Excel(name = "冻结金额", width = 15)
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal frozenAmount;

    @Excel(name = "提现收益", width = 15)
    @ApiModelProperty(value = "提现收益")
    private BigDecimal cashAmount;

    @Excel(name = "累计收益", width = 15)
    @ApiModelProperty(value = "累计收益")
    private BigDecimal earnAmount;

    @Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "自定义价格(0:关闭;1:开启 默认:0关闭)")
    private Integer customPrice;

    @ApiModelProperty(value = "分成类型(0:不分成;1:按交易金额;2:按交易笔数; 默认:0关闭)")
    private Integer scaleType;

    @ApiModelProperty(value = "库存开关(0-关闭1-开启)")
    private Integer stockStatus;

    @ApiModelProperty(value = "分成比例/每笔金额")
    private BigDecimal deductRatio;

    @ApiModelProperty("所属单位Ids")
    @TableField(exist = false)
    private Long[] belongIds;

}
